home *** CD-ROM | disk | FTP | other *** search
- #!/usr/bin/perl5
-
- require "/usr/OnRamp/lib/OnRamp.pm";
-
- open(IN, "< ../admin/majordomo_data");
- while (<IN>) {
- chomp;
- ($key, $val) = split(/=/);
- $data{$key} = $val;
- }
- close(IN);
-
- $list = $ENV{'QUERY_STRING'};
- $archive_loc = "$document_root/apps/majordomo/$list";
- $num_file = "$archive_loc/num";
-
- if (-e $num_file) {
- open(IN, "< $num_file");
- $num = <IN>;
- close(IN);
- } else { $num = 0; }
-
- print "Content-type: text/html\n\n";
- &make_page;
-
- sub make_page {
- print "<html><head>"
- . "<title>Majordomo message archives: $list</title></head>\n";
- print "<body bgcolor=#B8E5C0 background=/apps/major.bg.gif>\n";
- $title = "<h2>Majordomo message archives<br></h2>";
-
- print "<table width=100%><tr><th align=left><h2>$title</h2></th>\n",
- "<th align=right><a href=\"/newsplash.shtml\">",
- "<img height=55 width=57 border=0 src=/apps/home.gif></a>\n",
- " <a href=\"Apps.shtml\">",
- "<img height=55 width=57 border=0 src=/apps/back.gif></a>",
- " <a href=\"/apps/Apps.major.cgi\">",
- "<img height=60 width=80 border=0 src=\"/apps/major.gif\">",
- "</tr></table><br><br>\n";
-
- if ($num <= 0) {
- print "<center><table width=550>\n";
- print "<tr><td align=center>There are no archived "
- . "messages <br>in the \"$list\" mailing list.<br> "
- . "</td></tr>\n";
- } else {
- print "There are $num archived messages in the \"$list\" "
- . "mailing list.<p>\n";
- print "<center><table width=550>\n<tr><td><ul>\n";
- print "<li> <a href=\"majordomo/$list/date.html\">List archived "
- . "messages by date</a><p>\n";
- print "<li> <a href=\"majordomo/$list/subject.html\">List archived "
- . "messages by subject</a><p>\n";
- print "<li> <a href=\"majordomo/$list/author.html\">List archived "
- . "messages by author</a><p>\n";
- print "</ul><br></td></tr>\n";
- }
- print "</table></center>\n";
- print "</body></html>\n";
- }
-